package com.atguigu.gulimall.product.feign;

import com.atguigu.common.to.es.SkuEsModel;
import com.atguigu.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @DESCRIPTION: 跟Es远程调用有关
 * @Author: zr
 * @DATE: 2022/11/20 20:35
 */
@FeignClient("gulimall-search")
public interface SearchFeignService {
    /**
     * 远程保存数据到ES中
     *
     * @param skuEsModels
     * @return
     */
    @PostMapping("/search/save/product")
    R productStatusUp(@RequestBody List<SkuEsModel> skuEsModels);
}
